d4b26bf725958d3c7907eda2e9aaff65f21b1dbf,src/main/java/org/jenkinsci/plugins/dockerbuildstep/cmd/ExecCreateAndStartCommand.java,ExecCreateAndStartCommand,execute,#AbstractBuild#ConsoleLogger#,39
Before Change
DockerClient client = getClient(null);
for (String id : ids) {
id = id.trim();
ExecCreateCmdResponse res = client.execCreateCmd(id).withCmd(commandRes.split(" ")).exec();
console.logInfo(String.format("Exec command with ID '%s' created in container '%s' ", res.getId(), id));
client.execStartCmd(res.getId()).exec();
console.logInfo(String.format("Executing command with ID '%s'", res.getId()));
res.getId();
}
}
After Change
DockerClient client = getClient(null);
for (String id : ids) {
id = id.trim();
ExecCreateCmdResponse res = client.execCreateCmd(id).withCmd(commandRes.split(" ")).
withAttachStderr(true).withAttachStdout(true).exec();
console.logInfo(String.format("Exec command with ID '%s' created in container '%s' ", res.getId(), id));